]> dgit.raspbian.org Git - gnome-shell.git/commit
screenshot: End screencast with same keybinding as start screencast
authorIan Off <atimeofday@gmail.com>
Thu, 21 Aug 2025 04:27:43 +0000 (23:27 -0500)
committerMarge Bot <marge-bot@gnome.org>
Fri, 5 Dec 2025 22:07:18 +0000 (22:07 +0000)
commit905fe781d17cb2e7405fd341b5ae1eba9c318596
treee02b1776aa688101e212528da1f27ded0521929b
parent4d56b51100df05032ee78c5fa556b4e003de2761
screenshot: End screencast with same keybinding as start screencast

Currently, the screencast keyboard shortcut shows the UI to begin a
screencast, but there is no way to end it with a keyboard shortcut.

This behavior is inconvenient and seems to be a regression, as a wide
variety of online resources recommend using the same shortcut to start
and end screencasts.

This commit introduces a simple check when the showScreenRecordingUI
function is called by the show-screen-recording-ui keybinding.
If the showScreenRecordingUI function is called while a screencast
is in progress, the stopScreencast function is called instead
of opening the screenshot UI in screencast mode.

Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5386

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3847>
js/ui/screenshot.js